<template>
  <div id="app">
    <h1>Vue 应用测试</h1>
    <p>如果你能看到这个页面，说明 Vue 应用正常工作。</p>
    <router-view />
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
// import { useUserStore } from '@/stores/user'
// import { useCourtStore } from '@/stores/court'

// const userStore = useUserStore()
// const courtStore = useCourtStore()

onMounted(async () => {
  console.log('✅ App.vue 已挂载')
  // 暂时注释掉 store 初始化
  // userStore.initAuthListener()
  // await userStore.loadUserFromStorage()
  // await courtStore.loadCourts()
  // courtStore.subscribeToBookings()
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f7fa;
}

/* Element Plus 样式覆盖 */
.el-button {
  border-radius: 6px;
}

.el-card {
  border-radius: 8px;
}

.el-input__wrapper {
  border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .el-button {
    font-size: 14px;
  }
  
  .el-card {
    margin: 10px;
  }
}
</style>
